from pydantic import BaseModel, EmailStr

# Schema for token response
class Token(BaseModel):
    access_token: str
    token_type: str

# Schema for token payload (data stored in JWT)
class TokenPayload(BaseModel):
    sub: str | None = None # Subject (usually user ID or username)

# Schema for password reset request
class PasswordResetRequest(BaseModel):
    email: EmailStr

# Schema for setting a new password (used after reset link)
class SetNewPassword(BaseModel):
    token: str
    new_password: str
